package com.cjh.common.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cjh.common.dto.UserRoleDTO;
import com.cjh.common.entity.User;
import com.cjh.common.response.Result;

import java.util.List;

/**
 *
 */
public interface UserService extends IService<User> {
    User getUserByUserName(String username);

    Result getUserByLikeUsername(Page<User> page,String username);

    UserRoleDTO getUserById(Integer id);

    Result addUser(UserRoleDTO userRoleDTO);

    Result updateUser(UserRoleDTO userRoleDTO);

    Result updateUserPassword(Integer id, String password);

    Result deleteUserById(Integer id);

    Result deleteUserByIdList(List<Integer> list);
}
